package com.responseData;

import com.constant.ResponseDataConstant;

public class ResponseData{

    public static R<Object> success(Object value){
        return new R(ResponseDataConstant.SUCCESS,"成功",value , true);
    }

    public static R<Object> error(Object value){
        return new R(ResponseDataConstant.ERROR,"失败",value , false);
    }

    public static R<Object> unusualCustomize(int constantCode ,Object value){
        return new R(constantCode,"",value , false);
    }
}

